﻿
using System.ComponentModel.DataAnnotations.Schema;


namespace Company.Database.Entities
{
    [Table(nameof(UserEntity))]
    public class UserEntity : EntityBase
    {
        /// <summary>
        /// 用户名
        /// </summary>
        private string userName = string.Empty;
        public string UserName
        {
            get => userName;
            set => SetProperty(ref userName, value);
        }
        /// <summary>
        /// 密码
        /// </summary>
        private string password = string.Empty;
        public string Password
        {
            get => password;
            set => SetProperty(ref password, value);
        }
        /// <summary>
        /// 角色,1管理员,0普通用户
        /// </summary>
        private int role = 0;
        public int Role
        {
            get => role;
            set => SetProperty(ref role, value);
        }
    }
}
